<%@ page language="java" import="java.sql.*" %>
<%@include file="connection.jsp" %>
<% response.setContentType("text/html");%>
<%
String str=request.getParameter("queryString");
try {
String sql = "SELECT  f_name FROM user WHERE f_name LIKE '%"
+str+"%' LIMIT 10";
st = con.createStatement();
st.executeQuery(sql);
rs= st.getResultSet();
while (rs.next ()){
out.println("<li onclick='fill("+rs.getString(1)+");'>"+rs.getString(1)+"</i>");
}}catch(Exception e){
out.println("Exception is ;"+e);
}
%>

